Micron Document




Rosetta Code
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
top
Rosetta Code is a wiki-based programming chrestomathy website with implementations of common algorithms and solutions to various programming problems in many different programming languages.cite-ref-1[1]cite-ref-ieee-2-0[2] It is named for the Rosetta Stone, which has the same text inscribed on it in three languages, and thus allowed Egyptian hieroglyphs to be deciphered for the first time.cite-ref-rca-3-0[3]

Contents

Tasks

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Website

Rosetta Code was created in 2007 by Michael Mol.cite-ref-rca-3-1[3] The site's content is licensed under the GNU Free Documentation License 1.2, though some components may be dual-licensed under more permissive terms.cite-ref-4[4]

The Rosetta Code web repository illustrates how desired functionality is implemented very differently in various programming paradigms,cite-ref-5[5]cite-ref-6[6] and how "the same" task is accomplished in different programming languages.cite-ref-7[7]

As of 22 February 2024, Rosetta Code has:cite-ref-8[8]

• 1,266 computer programming tasks (or problems)
• 404 additional draft programming tasks
• 933 computer programming languages that are used to solve tasks

In August 2022, Rosetta Code migrated from independent hosting to Miraheze.

Data and structure

The Rosetta Code site is organized as a browsable cross-section of tasks (specific programming problems or considerations) and computer programming languages.cite-ref-ieee-2-1[2] A task's page displays visitor-contributed solutions in various computer languages, allowing a viewer to compare each language's approach to the task's stated problem.

Task pages are included in per-language listings based on the languages of provided solutions; a task with a solution in the C programming language will appear in the listing for C. If the same task has a solution in Ruby, the task will appear in the listing for Ruby as well.

Languages

Some of the computer programming languages found on Rosetta Code (which have Wikipedia descriptions) include: cite-ref-9[9]

Ada
APL
AWK
BASIC (58 variants)
C
C#
C++
Ceylon
COBOL
D
Delphi
Erlang
F#
Factor
Forth
Elixir
Go
Icon
J
Java
Julia
Kotlin
Lua
Maple
MATLAB
Nim
OCaml
Octave
ooRexx
Pascal
Perl
PHP
PL/I
Prolog
Python
R
Racket
Red
REXX
Ruby
Rust
Scala
Scheme
Seed7
Swift
Tcl
Unicon
XPL0

A complete list of the computer programming languages that have examples (entries/solutions to the Rosetta Code tasks) is available.cite-ref-10[10]

Tasks

Some of the tasks found on Rosetta Code include:cite-ref-11[11]

• "99 Bottles of Beer" (song)
Death Star (draw)
Galton box (bean box) animation
Hello world program Hello world/Text
Mandelbrot set (draw)
Prime numbers (102 tasks)
Quine
Roman numerals (encode/decode)
Rot13—a simple letter substitution cipher
SEDOLs
Sudoku (solve)
Tic-tac-toe (noughts and crosses)
Tower of Hanoi (solve)
Ulam spiral (draw)
Zebra Puzzle or Einstein riddle

See also
References

cite-note-11. Ralf Lämmel. "Software chrestomathies". doi:10.1016/j.scico.2013.11.014. 2013.
cite-note-ieee-22. citerefnanzfuria2015Nanz, Sebastian; Furia, Carlo A. (2015). A Comparative Study of Programming Languages in Rosetta Code. pp. 778–788. arXiv:1409.0252. doi:10.1109/ICSE.2015.90. ISBN 978-1-4799-1934-5. S2CID 2570311. Retrieved 2024-02-22. {{cite book}}: |website= ignored (help)
cite-note-rca-33. "Rosetta Code:About - Rosetta Code". www.rosettacode.org. 8 August 2010.
cite-note-44. "Rosetta Code:Copyrights". 24 January 2010. Retrieved 2010-12-19.
cite-note-55. Neil Walkinshaw. Chapter One: "Reverse-Engineering Software Behavior". "Advances in Computers". 2013. p. 14.
cite-note-66. Geoff Cox. "Speaking Code: Coding as Aesthetic and Political Expression". MIT Press, 2013. p. 6.
cite-note-77. Nick Montfort "No Code: Null Programs". 2013. p. 10.
cite-note-88. "Welcome to Rosetta Code". Retrieved 2007-01-07.
cite-note-99. "Most linked-to categories". Retrieved 2024-02-22.
cite-note-1010. "Rosetta Code/Languages/Full list". rosettacode.org. 4 March 2024.
cite-note-1111. "Pages with the most categories". Retrieved 2018-10-11.

External links

• Official website